@echo off

set BASEDIR=%~dp0\..

set "FEATURE=%BASEDIR%\conf"

set FEATURE=%FEATURE:\=\\%

::wmic process where "name='java.exe' and commandline like '%%%FEATURE%%%'" get name,commandline,processid

wmic process where "name='java.exe' and commandline like '%%%FEATURE%%%'" call terminate

exit 0